42ebc9620e62fc7458c2d7177439e61569b89b9e,src/main/java/org/apache/sysml/lops/DataGen.java,DataGen,getCPInstruction_Rand,#String#,163

Before Change


		sb.append(OPERAND_DELIMITOR);
		
		iLop = _inputParams.get(DataExpression.RAND_SPARSITY.toString()); //no variable support
		if (iLop.isVariable())
			throw new LopsException(printErrorLocation()
					+ "Parameter " + DataExpression.RAND_SPARSITY
					+ " must be a literal for a Rand operation.");

After Change


		sb.append(OPERAND_DELIMITOR);
		
		iLop = _inputParams.get(DataExpression.RAND_SPARSITY.toString());
		if (iLop.isVariable())
			sb.append(iLop.prepScalarLabel());
		else
			sb.append(iLop.getOutputParameters().getLabel());